<!DOCTYPE html>
<html lang="utf-8">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" type="image/png" sizes="16x16" href="../plugins/images/favicon.png">
    <title> 爱丁堡糖尿病信息平台</title>
    <!-- Bootstrap Core CSS -->
    <link href="bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="../plugins/bower_components/bootstrap-extension/css/bootstrap-extension.css" rel="stylesheet">
    <!-- Menu CSS -->
    <link href="../plugins/bower_components/sidebar-nav/dist/sidebar-nav.min.css" rel="stylesheet">
    <!-- morris CSS -->
    <link href="../plugins/bower_components/morrisjs/morris.css" rel="stylesheet">
    <!-- animation CSS -->
    <link href="css/animate.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="css/style.min.css" rel="stylesheet">


    <link href="css/colors/megna.css" id="theme" rel="stylesheet">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!-- 自定义样式 -->
    <link href="css/css.css" rel="stylesheet">
    <script src="public/yisheng_zhiliao/laydate/laydate.js"></script>
    <script src="js/angular.js"></script>
    <script src="js/function.js"></script>
    <link rel="stylesheet" href="public/hushi_jibenxingxi/index.css">
</head>

<body>
<!-- Preloader -->
<div class="preloader">
    <div class="cssload-speeding-wheel"></div>
</div>
<div id="wrapper">
    <!--顶部  -->
    <nav class="navbar navbar-default navbar-static-top m-b-0">
        <div class="navbar-header">
            <!-- logo和名称 -->
            <a class="navbar-toggle hidden-sm hidden-md hidden-lg " href="javascript:void(0)" data-toggle="collapse"
               data-target=".navbar-collapse"><i class="ti-menu"></i></a>
            <div class="top-left-part"><a class="logo" href="index.html"><b><img
                    src="../plugins/images/eliteadmin-logo.png" alt="home"/></b><span
                    class="hidden-xs">爱丁堡信息平台</span></a></div>
            <!-- end -->

            <!-- 隐藏显示按钮 -->
            <ul class="nav navbar-top-links navbar-left hidden-xs">
                <li><a href="javascript:void(0)" class="open-close hidden-xs waves-effect waves-light"><i
                        class="icon-arrow-left-circle ti-menu"></i></a></li>
            </ul>
            <!-- end -->
            <!-- 护士，医生按钮 -->
            <div class="toplist">
                <ul>
                    <li class="toplistcentv">
                        <a href="#" class="toplistcolor">护士专区</a>
                    </li>
                    <li>
                        <a href="#" class="toplistcolor">医生专区</a>
                    </li>
                </ul>
            </div>
            <!-- end -->

            <ul class="nav navbar-top-links navbar-right pull-right">
                <li class="dropdown">
                    <ul class="dropdown-menu mailbox animated bounceInDown">
                        <li>
                            <div class="drop-title">You have 4 new messages</div>
                        </li>
                        <li>
                            <div class="message-center">
                                <a href="#">
                                    <div class="user-img"><img src="../plugins/images/users/pawandeep.jpg" alt="user"
                                                               class="img-circle"> <span
                                            class="profile-status online pull-right"></span></div>
                                    <div class="mail-contnet">
                                        <h5>Pavan kumar</h5> <span class="mail-desc">Just see the my admin!</span> <span
                                            class="time">9:30 AM</span></div>
                                </a>
                                <a href="#">
                                    <div class="user-img"><img src="../plugins/images/users/sonu.jpg" alt="user"
                                                               class="img-circle"> <span
                                            class="profile-status busy pull-right"></span></div>
                                    <div class="mail-contnet">
                                        <h5>Sonu Nigam</h5> <span class="mail-desc">I've sung a song! See you at</span>
                                        <span class="time">9:10 AM</span></div>
                                </a>
                                <a href="#">
                                    <div class="user-img"><img src="../plugins/images/users/arijit.jpg" alt="user"
                                                               class="img-circle"> <span
                                            class="profile-status away pull-right"></span></div>
                                    <div class="mail-contnet">
                                        <h5>Arijit Sinh</h5> <span class="mail-desc">I am a singer!</span> <span
                                            class="time">9:08 AM</span></div>
                                </a>
                                <a href="#">
                                    <div class="user-img"><img src="../plugins/images/users/pawandeep.jpg" alt="user"
                                                               class="img-circle"> <span
                                            class="profile-status offline pull-right"></span></div>
                                    <div class="mail-contnet">
                                        <h5>Pavan kumar</h5> <span class="mail-desc">Just see the my admin!</span> <span
                                            class="time">9:02 AM</span></div>
                                </a>
                            </div>
                        </li>
                        <li>
                            <a class="text-center" href="javascript:void(0);"> <strong>See all notifications</strong> <i
                                    class="fa fa-angle-right"></i> </a>
                        </li>
                    </ul>
                    <!-- /.dropdown-messages -->
                </li>
                <!-- /.dropdown -->
                <li class="dropdown">
                    <ul class="dropdown-menu dropdown-tasks animated slideInUp">
                        <li>
                            <a href="#">
                                <div>
                                    <p><strong>Task 1</strong> <span class="pull-right text-muted">40% Complete</span>
                                    </p>
                                    <div class="progress progress-striped active">
                                        <div class="progress-bar progress-bar-success" role="progressbar"
                                             aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"
                                             style="width: 40%"><span class="sr-only">40% Complete (success)</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <p><strong>Task 2</strong> <span class="pull-right text-muted">20% Complete</span>
                                    </p>
                                    <div class="progress progress-striped active">
                                        <div class="progress-bar progress-bar-info" role="progressbar"
                                             aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"
                                             style="width: 20%"><span class="sr-only">20% Complete</span></div>
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <p><strong>Task 3</strong> <span class="pull-right text-muted">60% Complete</span>
                                    </p>
                                    <div class="progress progress-striped active">
                                        <div class="progress-bar progress-bar-warning" role="progressbar"
                                             aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"
                                             style="width: 60%"><span class="sr-only">60% Complete (warning)</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <p><strong>Task 4</strong> <span class="pull-right text-muted">80% Complete</span>
                                    </p>
                                    <div class="progress progress-striped active">
                                        <div class="progress-bar progress-bar-danger" role="progressbar"
                                             aria-valuenow="80" aria-valuemin="0" aria-valuemax="100"
                                             style="width: 80%"><span class="sr-only">80% Complete (danger)</span></div>
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a class="text-center" href="#"> <strong>See All Tasks</strong> <i
                                    class="fa fa-angle-right"></i> </a>
                        </li>
                    </ul>
                    <!-- /.dropdown-tasks -->
                </li>
                <!-- /.dropdown -->
                <li class="dropdown">
                    <!--右侧头像昵称-->
                    <a class="dropdown-toggle profile-pic" data-toggle="dropdown" href="#"> <img src="images/boy.jpg"
                                                                                                 alt="user-img"
                                                                                                 width="36"
                                                                                                 class="img-circle"><b
                            class="hidden-xs naziti">白色小米虫</b> </a>
                    <!--头像下拉-->
                    <ul class="dropdown-menu dropdown-user animated flipInY">

                        <li><a href="javascript:void(0)"><i class="ti-settings"></i>修改密码</a></li>
                        <li><a href="login.html"><i class="fa fa-power-off"></i>退出</a></li>
                    </ul>
                    <!-- 头像end -->
                </li>

            </ul>
        </div>
    </nav>
    <!-- 顶部end-->


    <!-- 左边导航部分 -->
    <div class="navbar-default sidebar" role="navigation">
        <div class="sidebar-nav navbar-collapse slimscrollsidebar">
            <ul class="nav" id="side-menu">


                <li class="in bacrt">
                    <form role="search" class="app-search hidden-xs">
                        <input type="text" placeholder="输入登记号、姓名搜索..." class="form-control hide-menu"><a href=""
                                                                                                         class="active"><i
                            class="fa fa-search"></i></a></form>

                </li>
                <li class="nav-small-cap m-t-10">--- 病历库</li>
                <li><a href="javascript:void(0);" class="waves-effect"><i class="fa fa-user-md p-r-10"></i> <span
                        class="hide-menu">柯正恶(123456)<span class="fa arrow"></span></span></a></li>
                <li><a href="javascript:void(0);" class="waves-effect"><i class="fa fa-user-md p-r-10 "></i> <span
                        class="hide-menu">段正淳(123456)<span class="fa arrow"></span></span></a></li>
                <li><a href="javascript:void(0);" class="waves-effect"><i class="fa fa-user-md p-r-10"></i> <span
                        class="hide-menu">段誉(123456)<span class="fa arrow"></span></span></a></li>
                <li><a href="javascript:void(0);" class="waves-effect"><i class="fa fa-user-md p-r-10"></i> <span
                        class="hide-menu">阿紫(123456)<span class="fa arrow"></span></span></a></li>
                <li><a href="javascript:void(0);" class="waves-effect"><i class="fa fa-user-md p-r-10"></i><span
                        class="hide-menu">扫地僧(123456)<span class="fa arrow"></span></span></a></li>
                <li><a href="javascript:void(0);" class="waves-effect"><i class="fa fa-user-md p-r-10"></i><span
                        class="hide-menu">风清扬(123456)<span class="fa arrow"></span></span></a></li>
                <li><a href="javascript:void(0);" class="waves-effect"><i class="fa fa-user-md p-r-10"></i><span
                        class="hide-menu">令狐冲(543412)<span class="fa arrow"></span></span></a></li>
                <li><a href="javascript:void(0);" class="waves-effect"><i class="fa fa-user-md p-r-10"></i><span
                        class="hide-menu">黄药师(123456)<span class="fa arrow"></span></span></a></li>
                <li><a href="javascript:void(0);" class="waves-effect"><i class="fa fa-user-md p-r-10"></i><span
                        class="hide-menu">乔帮主(123456)<span class="fa arrow"></span></span></a></li>
                <li><a href="javascript:void(0);" class="waves-effect"><i class="fa fa-user-md p-r-10"></i><span
                        class="hide-menu">周伯通(123456)<span class="fa arrow"></span></span></a></li>
            </ul>
        </div>
    </div>
    <!-- 左边导航部分 end -->
    <!-- 中间页面部分 -->
    <div id="page-wrapper">
        <div class="container-fluid" style="background: #FFFFFF">
            <!-- TODO 页面开始 -->
            <div style="padding: 30px">
                <form action="#" method="post" enctype="multipart/form-data">
                    <div class="row">
                        <div class="col-6"><strong>患者基本信息</strong></div>
                        <div class="col-6 text-right"><strong style="color: #0AA3A9">收录医师：</strong> <strong>李四</strong>
                        </div>
                    </div>
                    <hr style="color: #c9c9c9">
                    <div class="row content">
                        <div class="col-4">
                            <div class="row form-group">
                                <div class="col-4 text-right">
                                    <label class="control-label">姓名</label>
                                </div>
                                <div class="col-8">
                                    <input type="text" name="name" class="form-control" placeholder="请输入姓名">
                                </div>
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="row form-group">
                                <div class="col-4 text-right">
                                    <label class="control-label">生日</label>
                                </div>
                                <div class="col-8">
                                    <input type="text" name="birthday" class="form-control" placeholder="输入出生日期">
                                </div>
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="row form-group">
                                <div class="col-4 text-right">
                                    <label class="control-label">年龄</label>
                                </div>
                                <div class="col-8">
                                    <input type="text" name="sex" class="form-control" placeholder="请输入年龄">
                                </div>
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="row form-group">
                                <div class="col-4 text-right">
                                    <label class="control-label">就医卡号</label>
                                </div>
                                <div class="col-8">
                                    <input type="text" name="medicareCard" class="form-control" placeholder="请输入就医卡号">
                                </div>
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="row form-group">
                                <div class="col-4 text-right">
                                    <label class="control-label ">身份证号</label>
                                </div>
                                <div class="col-8">
                                    <input type="text" name="idCard" class="form-control" placeholder="请输入身份证号">
                                </div>
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="row form-group">
                                <div class="col-4 text-right">
                                    <label class="control-label">微信号</label>
                                </div>
                                <div class="col-8">
                                    <input type="text" name="weiChat" class="form-control" placeholder="请输入微信号">
                                </div>
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="row form-group">
                                <div class="col-4 text-right">
                                    <label class="control-label">职业选项</label>
                                </div>
                                <div class="col-8">
                                    <select name="job" class="form-control" id="">
                                        <option value="C++">C++</option>
                                        <option value="PHP">PHP</option>
                                        <option value="PYTHON">PYTHON</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="row form-group">
                                <div class="col-4 text-right">
                                    <label class="control-label">电话</label>
                                </div>
                                <div class="col-8">
                                    <input type="text" name="phone" class="form-control" placeholder="请输入电话号码">
                                </div>
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="row form-group">
                                <div class="col-4 text-right">
                                    <label class="control-label">邮箱</label>
                                </div>
                                <div class="col-8">
                                    <input type="text" name="email" class="form-control" placeholder="请输入邮箱">
                                </div>
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="row form-group">
                                <div class="col-4 text-right">
                                    <label class="control-label">地址</label>
                                </div>
                                <div class="col-8">
                                    <input type="text" name="address" class="form-control" placeholder="请输入联系地址">
                                </div>
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="row form-group">
                                <div class="col-4 text-right">
                                    <label class="control-label">图片</label>
                                </div>
                                <div class="col-8">
                                    <div class="row">
                                        <div class="img col-6">
                                            <div class="addImg" style="margin: 0" id='img2'>
                                                <i class="madd">+</i>
                                                <p>点击添加图片</p>
                                            </div>
                                        </div>
                                        <div class="img col-6">
                                            <div class="addImg" style="margin: 0" id='img1'>
                                                <i class="madd">+</i>
                                                <p>点击添加图片</p>
                                            </div>
                                        </div>
                                    </div>
                                    <input type="file" name="img1" id='file1'
                                           style="width: 0;height: 0; visibility: hidden">
                                    <input type="file" id='file2' name="img2"
                                           style="width: 0;height: 0; visibility:hidden;">
                                </div>
                            </div>
                        </div>
                        <div class="col-4">
                            <div class="row form-group">
                                <div class="col-4 text-right">
                                    <label class="control-label">研究知情确认</label>
                                </div>
                                <div class="col-8">
                                    <div class="row">
                                        <div class="col-6" style="padding-top: 9px">
                                            <span style="padding-right: 5px;">确认</span><input type="radio"
                                                                                              name="Research_informed_confirmation">
                                        </div>
                                        <div class="col-6" style="padding-top: 9px">
                                            <span style="padding-right: 5px;">未确认</span><input
                                                name="Research_informed_confirmation" type="radio">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class='text-right'>
                        <button type="submit" style="background-color: #398184;"
                                class="btn btn-inverse waves-effect waves-light">
                            <font style="vertical-align: inherit;">
                                <font style="vertical-align: inherit;">取消</font>
                            </font>
                        </button>
                        <button type="submit" style="background-color: #01C0C8;"
                                class="btn btn-success waves-effect waves-light m-r-10">
                            <font style="vertical-align: inherit;">
                                <font style="vertical-align: inherit;" ng-click="save()">保存</font>
                            </font>
                        </button>
                    </div>
                </form>
            </div>
        </div>
        <footer class="footer text-center naziti"> 版权：2017 &copy; Elite Admin brought to you by themedesigner.in
        </footer>
    </div>

</div>

<script></script>

<!-- /#wrapper -->
<!-- jQuery -->
<script src="../plugins/bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="bootstrap/dist/js/tether.min.js"></script>
<script src="bootstrap/dist/js/bootstrap.min.js"></script>
<script src="../plugins/bower_components/bootstrap-extension/js/bootstrap-extension.min.js"></script>
<!-- Menu Plugin JavaScript -->
<script src="../plugins/bower_components/sidebar-nav/dist/sidebar-nav.min.js"></script>
<!--slimscroll JavaScript -->
<script src="js/jquery.slimscroll.js"></script>
<!--Wave Effects -->
<script src="js/waves.js"></script>
<!--Morris JavaScript -->
<script src="../plugins/bower_components/raphael/raphael-min.js"></script>
<script src="../plugins/bower_components/morrisjs/morris.js"></script>
<!-- Sparkline chart JavaScript -->
<script src="../plugins/bower_components/jquery-sparkline/jquery.sparkline.min.js"></script>
<!-- jQuery peity -->
<script src="../plugins/bower_components/peity/jquery.peity.min.js"></script>
<script src="../plugins/bower_components/peity/jquery.peity.init.js"></script>
<!-- Custom Theme JavaScript -->
<script src="js/custom.min.js"></script>
<script src="js/dashboard1.js"></script>
<!--Style Switcher -->
<script src="../plugins/bower_components/styleswitcher/jQuery.style.switcher.js"></script>
</body>
<script>
    var img1 = true;
    var img2 = true;
    $('.img').on('click', '.addImg', function (e) {
        if ($(this)[0].id == 'img1') {
            if (!img1) return;
            $('#file1').click();
        }
        if ($(this)[0].id == 'img2') {
            if (!img2) return;
            $('#file2').click();
        }
        stopBubble(e);
    });
    $('.img').on('click', '.mclose', function (e) {
        stopBubble(e);
        if ($(this).parent()[0].id == 'img1') {
            img1 = true;
            $('#file1')[0].value = '';
        }
        if ($(this).parent()[0].id == 'img2') {
            img2 = true;
            $('#file2')[0].value = '';
        }
        $(this).parent().html('<i class="madd">+</i><p>点击添加图片</p>');
    });
    var typeImg = ['bmp', 'jpg', 'png', 'tif', 'gif', 'pcx', 'tga', 'exif', 'fpx', 'svg', 'psd', 'cdr', 'pcd', 'dxf', 'ufo', 'eps', 'ai', 'raw', 'WMF', 'webp'];
    $('#file1').change(function () {
        var split = this.files[0].name.split('.');
        var pd = false;
        for (var i = 0; i < typeImg.length; i++) {
            if (split[split.length - 1].toLowerCase() == typeImg[i]) {
                pd = true;
                break;
            }
        }
        if (!pd) {
            alert('请选择正确的文件');
            return;
        }
        var val = getObjectURL(this.files[0]);
        var html = '<i class="mclose">一</i><img src="' + val + '">';
        img1 = false;
        $('#img1').html(html);
    });
    $('#file2').change(function () {
        var split = this.files[0].name.split('.');
        var pd = false;
        for (var i = 0; i < typeImg.length; i++) {
            if (split[split.length - 1].toLowerCase() == typeImg[i]) {
                pd = true;
                break;
            }
        }
        if (!pd) {
            alert('请选择正确的文件');
            return;
        }
        var val = getObjectURL(this.files[0]);
        var html = '<i class="mclose">一</i><img src="' + val + '">';
        img2 = false;
        $('#img2').html(html);
    });

    function getObjectURL(file) {
        var url = null;
        if (window.createObjectURL != undefined) { // basic
            url = window.createObjectURL(file);
        } else if (window.URL != undefined) { // mozilla(firefox)
            url = window.URL.createObjectURL(file);
        } else if (window.webkitURL != undefined) { // webkit or chrome
            url = window.webkitURL.createObjectURL(file);
        }
        return url;
    }

    function stopBubble(e) {
        //一般用在鼠标或键盘事件上
        if (e && e.stopPropagation) {
            //W3C取消冒泡事件
            e.stopPropagation();
        } else {
            //IE取消冒泡事件
            window.event.cancelBubble = true;
        }
    };
</script>
</html>